﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SignalR_Persistent
{
    public partial class SendOutside : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void _sendButton_Click(object sender, EventArgs e)
        {
            string message = _messageBox.Text;
            string name = _nameBox.Text;
            ChatService.ChatServiceClient chatClient = new ChatService.ChatServiceClient();
            chatClient.BroadcastMessage(name, message);
            chatClient.Close();
        }
    }
}